package com.app.pojo;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 缴费记录表
 * </p>
 *
 * @author yoominic
 * @since 2024-07-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_payment_records_log")
public class PaymentRecordsLog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 缴费记录ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 订单号
     */
    private String orderNo;

    /**
     * 户号
     */
    private String account;

    /**
     * 用户姓名
     */
    private String userName;

    /**
     * 用户id(tb_user表id)
     */
    private Integer userId;

    /**
     * tb_company外键id
     */
    private Integer companyId;

    /**
     * 单位名称
     */
    private String companyName;

    /**
     * 用户详细地址
     */
    private String userAddress;

    /**
     * 缴费金额
     */
    private BigDecimal payMoney;

    @ApiModelProperty(value = "状态 1待支付 2已支付 3支付失败")
    private String state;
    @TableField(exist = false)
    private String stateStr;
    @ApiModelProperty(value = "支付失败原因")
    private String reason;

    /**
     * 燃气表余额(缴费之后)
     */
    private BigDecimal gasMeterBalance;

    /**
     * 类型 1 燃气费
     */
    private String type;
    @TableField(exist = false)
    private String typeStr;
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;


}
